<template>
    <a-tabs v-model="activeTabKey">
        <a-tab-pane key="user" :tab="i18n('list.user','授权用户')">
            <bpm-auth-user-list-by-process ref="user" />
        </a-tab-pane>
        <a-tab-pane key="role" :tab="i18n('list.role','授权角色')">
            <bpm-auth-role-list-by-process ref="role" />
        </a-tab-pane>
        <div slot="tabBarExtraContent">
            <a-button @click="back">{{i18n('list.backBtn','返回')}}</a-button>
        </div>

    </a-tabs>
</template>

<script>
    import bpmAuthList from "./bpmAuthList";
    export default {
        name: 'BpmAuthListByProcess',
        mixins:[bpmAuthList],

        methods:{
            i18n(name,text,key){
                return this.$ti18(name,text,"BpmAuth",key);
            },
            back() {
                window.history.go(-1);
            },
        }
    }
</script>
<style scoped>

</style>

